# 父类
class Player(object):
    def __init__(self,name,age):
        self.name = name
        self.age = age

# 子类
class VIP(Player):
    # 子类调用父类构造函数 super()
    def __init__(self,name,age,coin):
        super().__init__(name,age)
        self.coin = coin

tim = VIP("tim",21)
print(isinstance(tim,Player))
print(isinstance(tim,VIP))
